package com.zeldu.teacher.homework.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("question_library")
public class Question {

    private static final long serialVersionUID = 1L;

    /*
     *
     * */
    @TableId(value = "ID",type = IdType.ID_WORKER)
    private Long id;
    /*
     * 居民名字
     * */
    @TableField(value = "teacher_id")
    private Long teacherId;

    @TableField(value = "subject")
    private String subject;
    /*
     *
     * */
    @TableField(value = "createTime")
    private Timestamp create_time;
    /*
     * 家庭地址
     * */
    @TableField(value = "type")
    private int type;
    /*
     *
     * */
    @TableField(value = "question")

    private String question;
    /*
     *
     * */
    @TableField(value = "choice")
    private int  choice;


    @TableField(value = "grade")
    private String  grade;

}
